package com.ruoyi.system.domain;

import java.util.Date;
import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 活动信息对象 credit_activity
 * 
 * @author ruoyi
 * @date 2025-01-28
 */
public class CreditActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long activityId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动类型（1资源回收 2护水卫士 3公益之星） */
    @Excel(name = "活动类型", readConverterExp = "1=资源回收,2=护水卫士,3=公益之星")
    private String activityType;

    /** 活动描述 */
    @Excel(name = "活动描述")
    private String activityDesc;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String activityImage;

    /** 奖励分数 */
    @Excel(name = "奖励分数")
    private Integer scoreReward;

    /** 最大参与人数 */
    @Excel(name = "最大参与人数")
    private Integer maxParticipants;

    /** 当前参与人数 */
    @Excel(name = "当前参与人数")
    private Integer currentParticipants;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 状态（0已结束 1进行中 2未开始） */
    @Excel(name = "状态", readConverterExp = "0=已结束,1=进行中,2=未开始")
    private String status;

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    @NotBlank(message = "活动名称不能为空")
    @Size(max = 200, message = "活动名称长度不能超过200个字符")
    public String getActivityName() 
    {
        return activityName;
    }

    public void setActivityType(String activityType) 
    {
        this.activityType = activityType;
    }

    @NotBlank(message = "活动类型不能为空")
    public String getActivityType() 
    {
        return activityType;
    }

    public void setActivityDesc(String activityDesc) 
    {
        this.activityDesc = activityDesc;
    }

    public String getActivityDesc() 
    {
        return activityDesc;
    }

    public void setActivityImage(String activityImage) 
    {
        this.activityImage = activityImage;
    }

    @Size(max = 500, message = "活动图片长度不能超过500个字符")
    public String getActivityImage() 
    {
        return activityImage;
    }

    public void setScoreReward(Integer scoreReward) 
    {
        this.scoreReward = scoreReward;
    }

    @NotNull(message = "奖励分数不能为空")
    public Integer getScoreReward() 
    {
        return scoreReward;
    }

    public void setMaxParticipants(Integer maxParticipants) 
    {
        this.maxParticipants = maxParticipants;
    }

    public Integer getMaxParticipants() 
    {
        return maxParticipants;
    }

    public void setCurrentParticipants(Integer currentParticipants) 
    {
        this.currentParticipants = currentParticipants;
    }

    public Integer getCurrentParticipants() 
    {
        return currentParticipants;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("activityName", getActivityName())
            .append("activityType", getActivityType())
            .append("activityDesc", getActivityDesc())
            .append("activityImage", getActivityImage())
            .append("scoreReward", getScoreReward())
            .append("maxParticipants", getMaxParticipants())
            .append("currentParticipants", getCurrentParticipants())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 